package com.yango.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yango.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yango.order.entity.vo.OrderQuery;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author LiDingYin
 * @since 2021-08-04
 */
public interface OrderService extends IService<Order> {

    //根据课程id和用户id创建订单，返回订单id
    String createOrder(String courseId, String memberIdByJwtToken);

    //分页-条件查询所有订单
    void pageOrderList(Page<Order> page, OrderQuery orderQuery);
}
